import Vue from 'vue'
import App from './App.vue'
//-----导入elementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//-----导入elementUI

//导入http.js
import request from './utils/http'

import router from './router'
import store from './store'
import {hasPermission} from './utils/permissionDirect'

const Plugins = [hasPermission]

Plugins.map((plugin) => {
  Vue.use(plugin)
})
Vue.config.productionTip = false
// Vue使用ElementUI
Vue.use(ElementUI,{size:'mini'})

Vue.prototype.$http = request;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
